//
//  EGMBleHeartAndBpOperation.h
//  HBSDKPro
//
//  Created by LRB_C on 2020/8/17.
//  Copyright © 2020 林瑞彬. All rights reserved.
//

#import "EGMBleSportsOperation.h"
#import "EGMHrmBpDataListener.h"

typedef void(^readHrmBpDataBlock)(NSArray <BleCacheHrmBpDataModel*> *models);

//心率血压任务
@interface EGMBleHeartAndBpOperation : EGMBleSportsOperation

@property (nonatomic,copy) readHrmBpDataBlock hrmBpHistoryDataResultBlock;
/**
 读取蓝牙设备 心率血压 历史数据
先调用 EGMBleDeviceSettingOperation enableMassDataNotify：YES 默认开启
*/
-(void)writeCmdOfReadHrmAndBpHistoryDataWithBlock:(readHrmBpDataBlock)block;

/**
 开始心率血压测量 请先打开 enableHrmBPNotify:YES
 测量结果通过 NOTIFICATION_BPM_UPDATED 通知传出
 通知参数为  @{KEY_NOTIFICATION_USER_INFO:BleBpmModel}
 */
-(void) writeCmdOfStartMesureHrmBP;

/**
 停止检测心率血压
 */
- (void)stopBpm;

@end

